async function postJson(url, params, name) {
  let results = {}; 
  wx.request({
    url: url,
    data: params,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    // dataType: 'json',
    // responseType: 'text',
    success: function(res) {
      //请求成功
     
      results= res;
    },
    fail: function(err) { 
      //请求失败
      results= err;
      console.log("<------"+name+"------>"+JSON.stringify(err))
    },
    complete: function(res) {},//请求完成后
  })
  return result;
}
module.exports = {
  postJson: postJson
}